package notify.xgx.com.notifydemo;

import android.content.Intent;
import android.os.Bundle;

public class MainActivity extends RootActivity implements INotifycallBack{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
        MobileApplication.addNotifynotifycode(this.getClass(), NotifyInfo.NOTIFYCODE.FINISH);
        MobileApplication.addNotifyCallBackIntoPool(this.getClass(),this);
        Intent intent=new Intent(this,MainActivity2.class);
        startActivity(intent);
	}

    @Override
    public Object onNotify(NotifyInfo.NOTIFYCODE notifycode, Object... objs) {
        if(notifycode== NotifyInfo.NOTIFYCODE.FINISH){
            PalLog.printE(" mainactivity says:  some one call me!!!! notifyCode is"+notifycode);
            return "my name is mainactivity";
        }
        return "";
    }
}
